
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<link rel="stylesheet" href="../../css/Animate.css">
<link rel="stylesheet" type="text/css" href="http://www.jq22.com/jquery/font-awesome.4.6.0.css">
<link rel="stylesheet" href="../../css/cs.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.16/vue.min.js"></script>
<script src="../../js/cityChoice.js"></script>
<title>城市选择</title>
</head>
<body>
<section class="adminBox">
<div class="cityChoice">
<input type="text" class="cityInput" v-model.trim='cityInputVal' v-on:click='cityPatFun' />
</div>
<com-citychoice ref="city" v-on:tochildevent='cityjs'></com-citychoice>
</section>
<script>
  new Vue({
    el:'.adminBox',
    data:{
      cityInputVal:'',
    },
    methods:{
      cityPatFun:function(){
        this.$refs.city.cityFun();
      },
      cityjs:function(data){
        this.cityInputVal=data;
      }
    }
  })
</script>
</body>
</html>